<@space.space_html title='${(vSpace.user.loginName)!}的空间'>
			<div class="Mbanner">
			<#if spaceCovers??&&spaceCovers?size !=0>
    		<div id="msg_slideshow" class="msg_slideshow">
				<div id="msg_wrapper" class="msg_wrapper">
				</div>
				<div id="msg_controls" class="msg_controls"><!-- right has to animate to 15px, default -110px -->
					<a href="#" id="msg_grid" class="msg_grid"></a>
					<a href="#" id="msg_prev" class="msg_prev"></a>
					<a href="#" id="msg_pause_play" class="msg_pause"></a><!-- has to change to msg_play if paused-->
					<a href="#" id="msg_next" class="msg_next"></a>
				</div>
				<div id="msg_thumbs" class="msg_thumbs"><!-- top has to animate to 0px, default -230px -->
					<div class="msg_thumb_wrapper">
						  	<#if spaceCovers??&&spaceCovers?size !=0>
	    						<#list spaceCovers as cover>
	    							<a href="#"><img src="${(cover.path)!}" alt="${(cover.path)!}" width="75px" height="75px"/></a>
	    						</#list>
	    					</#if>
					</div>
					<div class="msg_thumb_wrapper" style="display:none;">
					</div>
					<a href="#" id="msg_thumb_next" class="msg_thumb_next"></a>
					<a href="#" id="msg_thumb_prev" class="msg_thumb_prev"></a>
					<a href="#" id="msg_thumb_close" class="msg_thumb_close"></a>
					<span class="msg_loading"></span><!-- show when next thumb wrapper loading -->
				</div>
			</div>
			</#if>
			</div>
    <div class="Mwarp">
    	<div class="Mleft">
        
        
        	<div class="Mbox">
            	<div class="boxtop">
                	<h4><#if (vSpace.user.loginName)?has_content>${(vSpace.user.name)!}<#else>${(vSpace.user.loginName)!}</#if></h4>
                </div>
                <div class="boxBody">
                	<div class="boxlogo">
                    	<#if (vSpace.user.avatar)??&&(vSpace.user.avatar?has_content)>
			    			<img src="${(vSpace.user.avatar)!}" width="165px" height="165px" />
			    		<#else>
			        		<img src="${base}/images/temp/euro2012.jpg" />
			        	</#if>
                    </div>
                    <h6>北京</h6>
                    <div class="boxbtn">
                    	<input name="" type="button" class="sm" value="添加关注" style="font-size:12px;"  onClick="applyFriend('${(vSpace.id?c)!}')"/>
                        <input name="" type="button" class="sm" value="发送短信" style="font-size:12px;" onClick="sendMessage('${(vSpace.id?c)!}')"/>
                    </div>
                    <div class="v1">
                    	<img src="../images/v1.gif" />
                        <div class="v1bg">
                            <div style="width:${(spacePoint)!}%"><span>${(spacePoint)!} 美分</span></div>
                        </div>
                    </div>
                    <div class="vip">
                    	<img src="../images/vip.gif" />
						<span>总访问量：${(vSpace.user.visitCount)!}</span>
                        <ul>
                        	<li>封面:${(spaceCoverCount)!}</li>
                            <li>展示:${(showCount)!}</li>
                            <li>微博:${(moodCount)!}</li>
                        </ul>
                    </div>
                    <div class="boxbtn">
                    	<#--<input name="" type="button" class="sm" value="投 诉" style="font-size:12px;" />
                    	-->
                    </div>
                </div>
            </div>
            
			<div class="Mbox">
				<div class="boxtop">
					<h3>相互关注的机构</h3><span>Agency</span>
				</div>
				<div class="boxBody">
					<ul class="boxlist">
				
					</ul>
					<div class="clear"></div>
				</div>
				
			</div>

        </div>
        <div class="Mbody">
        	<div class="Mbox Mbodybox">
				<div class="boxtop">
					<h3>公告</h3><span>News</span>
				</div>
				<div class="boxBody">
					<#if (noticePage??&&noticePage.result??)>
					<#list noticePage.result as notice>
					<div class="Mnews">
						<h3>${(notice.title)!}:${(notice.createDate?string("yyyy-MM-dd"))!}</h3>
						<div>
							${(notice.content)!}
						</div>
					</div>
					</#list>
					</#if>
					
				</div>
				
			</div>
			<div class="Mbox Mbodybox" style="margin-left:5px;">
				<div class="boxtop">
					<h3>项目</h3><span>Items</span>
					<div class="more"><#--<img src="../images/more.gif" />--></div>
				</div>
				<div class="boxBody">
					<ul class="sublist">
						
						<#if show??>
						<#list show as show>
							<li>
								<div class="subpic"><a href="${base}/space/show!detail?domain=${(domain)!}&id=${(show.id?c)!}">
									<img src="<#if show??&&show.cover??>${(show.cover)!}<#else>${base}/images/temp/group_img.jpg</#if>" height="114px" width="152px"/></a>
								</div>
								<div class="crip">
									<img src="${base}/images/gourp_ico3.gif" />
									<span><a href="${base}/space/show!detail?domain=${(domain)!}&id=${(show.id?c)!}">${(show.title?right_pad(20)?substring(0,20))!}</a></span>
								</div>
							</li>
						</#list>
						</#if>
					</ul>
					<div class="clear"></div>
				</div>
				
			</div>
			
			
        </div>
        
        <div class="Mright">
        	<div class="Mbox" >
				<div class="boxtop">
					<h3>相互关注的个人</h3><span>People</span>
				</div>
				<div class="boxBody">
					<ul class="boxlist">
						<#if friendConfigList??>
						<#list friendConfigList as fc>
						<li>
							<div class="smlogo"><img src="${base}/images/temp/logo_small.jpg" /></div>
							<h4><a href="${base}/space/?domain=${(fc.relater.domain)!}">${fc.relater.name!}</a></h4>
							<div class="discrp_logo">
								<h5>VIP</h5>
								<img src="${base}/images/statu_up.gif" />
							</div>
						</li>
						</#list>
						</#if>
					</ul>
					<div class="clear"></div>
				</div>
				
			</div>
        </div>
		<div class="clear"></div>
    </div>
<script type="text/javascript" src="${statics}/plugins/MinimalisticSlideshowGallery/MinimalisticSlideshowGallery.js"></script>
<link rel="stylesheet" href="${statics}/plugins/MinimalisticSlideshowGallery/css/style.css" type="text/css" media="screen" />
<script type="text/javascript">        

        //申请朋友
        function applyFriend(targetId){
        	if(!window.confirm("确实要加对方为好友吗？")){
        		return;
        	}
        	if(targetId==''){
        		return false;
        	}
        	 $.ajax({
		        type: "post",
		        dataType: "json",
		        url: "${base}/user/friend/index!apply?time=" + new Date().getTime(),
		        async: false,
		        data: {
		            "id": targetId
		        },
		        success: function(result){
					if(result){
						alert("已发送请求，请等待对方审核");
					}else{
						alert("申请失败");
					}
		        }
		    });
        }
        function sendMessage(spaceId){
		    $.ajax({
		        type: "post",
		        dataType: "json",
		        url: '${base}' + "/tag/message!send?time=" + new Date().getTime(),
		        async: false,
		        success: function(ok){
		        	if(ok=="1"){
						window.location.href="${base}/user/message/index!send?receiverId="+spaceId;
					}else{
						alert("请先登录");
					}
		        }
		    });
        }
    </script>
</@space.space_html>


